<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
 * Copyright (c) 2016 JUI All rights reserved.
 */

;(function () {

<span id='JUI-DialogForm'>    /**
</span>     * DialogForm对话框,将Dialog和Form组合&lt;br&gt;
     * &lt;pre&gt;
     win = new JUI.DialogForm({
	contentId:'win'
	,formId:'form'
	,title:'Dialog标题'
	,width:500
	,onOk:function() {
		alert('ok')
	}
});
     &lt;/pre&gt;
     * @class JUI.DialogForm
     * @extends JUI.Dialog
     */
    JUI.Class('DialogForm', {
        // 默认属性
        OPTS: {}
<span id='global-method-constructor'>        /**
</span>         * 构造函数
         * @constructor
         * @ignore
         */
        , init: function (opts) {
            this._super(opts);
            this.form = new JUI.Form(opts);
        }
<span id='JUI-DialogForm-method-load'>        /**
</span>         * 同Form.load()
         * @see {JUI.Form.load}
         */
        , load: function (data) {
            this.form.load(data);
        }
<span id='JUI-DialogForm-method-setData'>        /**
</span>         * 同Form.setData()
         * @see {JUI.Form.setData}
         */
        , setData: function (data) {
            this.load(data);
        }
<span id='JUI-DialogForm-method-getData'>        /**
</span>         * 同Form.getData()
         * @see {JUI.Form.getData}
         */
        , getData: function () {
            return this.form.getData();
        }
<span id='JUI-DialogForm-method-check'>        /**
</span>         * 同Form.check()
         * @see {JUI.Form.check}
         */
        , check: function () {
            return this.form.check();
        }
<span id='JUI-DialogForm-method-validate'>        /**
</span>         * 同Form.validate()
         * @see {JUI.Form.validate}
         */
        , validate: function () {
            return this.form.validate();
        }
<span id='JUI-DialogForm-method-submit'>        /**
</span>         * 同Form.submit()
         * @see {JUI.Form.submit}
         */
        , submit: function (opts) {
            this.form.submit(opts);
        }
<span id='JUI-DialogForm-method-reset'>        /**
</span>         * 同Form.reset()
         * @see {JUI.Form.reset}
         */
        , reset: function () {
            this.form.reset();
        }
<span id='JUI-DialogForm-method-clear'>        /**
</span>         * 同Form.clear()
         * @see {JUI.Form.clear}
         */
        , clear: function() {
        	this.form.clear();
        }
<span id='JUI-DialogForm-method-getForm'>        /**
</span>         * 返回JUI.Form实例对象
         */
        , getForm: function () {
            return this.form;
        }
    }, JUI.Dialog);

})();</pre>
</body>
</html>
